package perso.android.savethemage.v1;

import java.util.List;

import org.andengine.entity.IEntity;
import org.andengine.entity.modifier.PathModifier;
import org.andengine.entity.modifier.PathModifier.IPathModifierListener;
import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.extension.physics.box2d.PhysicsFactory;
import org.andengine.extension.physics.box2d.PhysicsWorld;
import org.andengine.util.modifier.ease.EaseSineInOut;

import com.badlogic.gdx.physics.box2d.BodyDef.BodyType;

public class MechantDeBase extends AMechant{

	public MechantDeBase(int vieDebut, List<Coordonees> mesCoordPathX){
		super.instancier(vieDebut, mesCoordPathX);
	}

	@Override
	public void onCreateScene(PhysicsWorld mPhysicsWorld, int hauteur, int largeur, float myVitesse){
		final float centreX = -100;
		final float centreY = -100;
		
		this.vitesse = myVitesse;
		
        this.face = new AnimatedSprite(centreX, centreY, largeur, hauteur, mEntiteTextureRegion, this.vertexBufferObjectManager);
        this.face.animate(200);

        this.body = PhysicsFactory.createCircleBody(mPhysicsWorld, this.face, BodyType.DynamicBody, FIXTURE_DEF);
	}
}
